package com.lemonPiggy.message.service;

import com.lemonPiggy.message.domain.MessageAnnouncement;

import java.util.List;


/**
 * 系统通告Service接口
 * 
 * @author ruoyi
 * @date 2021-08-17
 */
public interface IMessageAnnouncementService 
{
    /**
     * 查询系统通告
     * 
     * @param id 系统通告ID
     * @return 系统通告
     */
    public MessageAnnouncement selectMessageAnnouncementById(String id);

    /**
     * 查询系统通告列表
     * 
     * @param messageAnnouncement 系统通告
     * @return 系统通告集合
     */
    public List<MessageAnnouncement> selectMessageAnnouncementList(MessageAnnouncement messageAnnouncement);

    /**
     * 新增系统通告
     * 
     * @param messageAnnouncement 系统通告
     * @return 结果
     */
    public int insertMessageAnnouncement(MessageAnnouncement messageAnnouncement);

    /**
     * 修改系统通告
     * 
     * @param messageAnnouncement 系统通告
     * @return 结果
     */
    public int updateMessageAnnouncement(MessageAnnouncement messageAnnouncement);

    /**
     * 批量删除系统通告
     * 
     * @param ids 需要删除的系统通告ID
     * @return 结果
     */
    public int deleteMessageAnnouncementByIds(String[] ids);

    /**
     * 删除系统通告信息
     * 
     * @param id 系统通告ID
     * @return 结果
     */
    public int deleteMessageAnnouncementById(String id);

    public List<MessageAnnouncement> querySysCementPageByUserId(Long userId, String msgCategory);

    List<MessageAnnouncement> selectMessageAnnouncementListQuery(MessageAnnouncement messageAnnouncement,Long userId);

    List<MessageAnnouncement> querySysCementPageByUserIdALL(Long userId, String msgCategory);
}
